//
#include <iostream>

class Test
{
public:
    Test(int count):count(count){}
    bool operator()(int a, int b)
    {
        return a < b && a < count;
    }
private:
    int count;
};

void func(int a, int b, Test & t)
{
    if(t(a, b) == true)
    {
        std::cout<<" 大于 "<<std::endl;
    }
    else
    {
        std::cout<<" 小于 "<<std::endl;
    }
}

int main()
{
    // Test t(9);
    // func(1,2,t);
    // t(10);

    const char * s = "helloworld";
    int b = 11;
    auto f = [s, &b](int a)
    {
        b++;
        std::cout<<b<<" "<<a<<std::endl;//输出12 10
    };
    f(10);
    return 0;
}